﻿/****** Object:  Table [dbo].[Orders]    Script Date: 03/15/2011 11:23:58 ******/
USE [ShopDB] 
GO
CREATE TABLE [dbo].[Orders](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[MerchandiserName] [nchar](256) NOT NULL,
	[CustomerName] [nchar](256) NOT NULL,
	[IsCompleted] [bit] NOT NULL,
	[CreateDate] [datetime] NULL,
 CONSTRAINT [PK_Orders] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[Orders] ADD  CONSTRAINT [DF_Orders_IsCompleted]  DEFAULT ((0)) FOR [IsCompleted]
GO


